# Toggle Business Partners Update Monitoring

To toggle update monitoring on multiple BusinessPartners, the permission can be changed
via a list of Business Partners, identified by their ID.
After the job is finished, the following actions are taken for Business Partners which match the businessPartnerIds criteria:
* businessPartner.updateMonitoring fields takes a value of ToggleUpdateMonitoringJobRequest#enable
* if enable is true then:
  * an attempt is taken to find Business Partner in all configured
[update monitors for non-commercial reference data sources](https://developer.cdq.com/apis/data-exchange-api/api-v5/data-monitors/paths/~1v2~1storages~1%7Bstorageid%7D~1datamonitors~1%7Bdatamonitorid%7D/put)
 and links are created if matches are found via defined linkage strategies
  * if the storage has UPDATES feature activated, updates for linked Business Partners from non-commercial reference data sources are propagated to
[Business Partner Updates](https://developer.cdq.com/apis/data-exchange-api/api-v5/business-partners/paths/~1v5~1storages~1%7Bstorageid%7D~1businesspartners~1updates/get)
.
* if enable is false then:
  * all existing links of a Business Partner to Business Partners in non-commercial reference data sources are removed
  * updates are no more propagated for this Business Partner
  * linkage is not performed for any non-commercial reference data source

For toggling a complete Data Source or for a certain Country of a Data Source,
please go to [Start Toggle Update Monitoring Job](https://developer.cdq.com/apis/data-exchange-api/api-v5/business-partners/paths/~1jobs~1toggleupdatemonitoringjobs/post).

Endpoint: PUT /storages/{storageId}/businesspartners/toggleUpdateMonitoring
Version: 5
Security: apiKey

## Security:

  - `apiKey` (unknown)
    apiKey in header X-API-KEY

## Path parameters:

  - `storageId` (string, required)
    Unique identifier of the Storage.

## Request fields (application/json):

  - `enable` (boolean, required)
    Parameter to describe if the Business Partners should be activated for update monitoring (true) or deactivated (false) for non-commercial reference data sources.
    Example: true

  - `businessPartnerIds` (array, required)
    List of Business Partner IDs to identify all those Business Partners that should be activated/deactivated.

## Response 204:

  - `204` (unknown)
    OK

